# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=perl-log-log4perl
pkgver=1.57
pkgrel=2
pkgdesc='Log4j implementation for Perl'
arch=('any')
url="https://metacpan.org/release/Log-Log4perl"
license=('PerlArtistic' 'GPL')
depends=('perl')
options=('!emptydirs')
source=("https://search.cpan.org/CPAN/authors/id/E/ET/ETJ/Log-Log4perl-$pkgver.tar.gz")
sha512sums=('5ae4183c5d62addadcdfb70b5097ff1edbb83a9c44d6da0ce28349c8fcdea8ae09c95be24c82e7f71dc9d3c7e64bad605a16500c3e5570592d0482cd39309511')

build() {
  cd Log-Log4perl-$pkgver
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd Log-Log4perl-$pkgver
  make test
}

package() {
  cd Log-Log4perl-$pkgver
  make DESTDIR="$pkgdir" install
}
